/*
 * @Author: liuYang codkly@gmail.com
 * @Date: 2022-12-05 16:29:01
 * @LastEditors: liuYang codkly@gmail.com
 * @LastEditTime: 2022-12-05 17:40:11
 * @FilePath: \coding\nest\blog_alpha\config\config.default.ts
 * @Description: 
 * 暂无备注
 */
import configLocal from './config.local';
import configProd from './config.prod';
import configUnittest from './config.unittest';

// 默认配置 - 会自动合并运行环境配置。
export default () =>
  Object.assign(
    // 默认配置
    {
      // 项目启动端口
      port: 3000,
      // 数据库配置
      mysql: {
        host: '162.14.116.58',
        port: 3306,
        username: 'nest_cs',
        password: 'wiYZhABHN3F8brwc',
        database: 'nest_cs',
        synchronize: false,
      },
    },
    {
      local: configLocal,
      pord: configProd,
      unittest: configUnittest,
    }['local'](),
  );
